package com.jk.xz.controller;

import com.jk.CinemaBean;
import com.jk.xz.service.CinemaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller
@RequestMapping("page")
public class CinemaPageController {
    @Autowired
    private CinemaService cinemaService;
    @RequestMapping("getHall")
    public String getHall(Integer id,Model model){
        model.addAttribute("id",id);
        return "page/getHall";
    }

    /*
    * @Author: xz
    * @Description: 跳转到新增页面
    * @Date: 2021/5/19 20:53
    * @Param:
    * @Return:
    **/
    @RequestMapping("toAdd")
    public String toAdd(){

        return "page/toAddCinema";
    }
    @RequestMapping("toAddd")
    public String toAddd(){

        return "page/toAdd";
    }
    @RequestMapping("cinema")
    public String cinema(){

        return "cinema";
    }
    //跳转影厅页面
    @RequestMapping("queryHall")
    public String queryHall(){

        return "page/queryHall";
    }
    //跳转新增影厅页面
    @RequestMapping("toAddHall")
    public String toAddHall(){

        return "page/toAddHall";
    }
    //跳转影院页面
    @RequestMapping("queryCinemaByName")
    public String queryCinemaByName(){

        return "page/queryCinemaByName";
    }
    //test
    @RequestMapping("seat")
    public String seat(){

        return "seat/seat";
    }

}
